package com.service.quartz.entity;

import com.tool.base.base.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "task")
@Data
public class TaskEntity extends BaseEntity {
    @Column(name = "title", nullable = false)
    private String title;

    @Column(name = "notify_url", nullable = false)
    private String notifyUrl;

    @Column(name = "notify_data")
    private String notifyData;

    @Column(name = "notify_result")
    private String notifyResult;

    @Column(name = "notify_state")
    /*通知状态：0-未通知，1-已通知，2-通知失败*/
    private int notifyState;

    @Column(name = "max_retry", nullable = false)
    private int maxRetry;

    @Column(name = "crontab")
    private String cronTab;
}
